<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
return [
    'handler' => [
        'http' => [
            App\Exception\Handler\HttpExceptionHandler::class, //HTTP异常无需处理
            App\Exception\Handler\ApiExceptionHandler::class, //异常统一转换为标准接口相应
            App\Exception\Handler\AppExceptionHandler::class, //兜底的异常处理
        ],
        "jsonrpc" => [
            App\Exception\Handler\RpcExceptionHandler::class, // RPC的异常会传递到调用方，不做额外处理
            App\Exception\Handler\AppExceptionHandler::class, //兜底的异常处理
        ]
    ],
];
